export default{
    //命名空间
    namespaced: true, // 必须声明
    state: {
        userinfo:{
            user:'',
            token:''
        }
    },
    mutations: {
        // 设置用户信息
        setUser(state,payload){
            state.userinfo = payload;    
        },
        clearUser(state){
            state.userinfo={
                user:'',
                token:''
            }
        }
    },
    actions: {
    },
    getters: {
    }
}